import request from '@/utils/request'

// 查询养殖日期列表
export function listCrops(query) {
  return request({
    url: '/business/crops/list',
    method: 'get',
    params: query
  })
}

// 查询养殖日期详细
export function getCrops(id) {
  return request({
    url: '/business/crops/' + id,
    method: 'get'
  })
}

// 新增养殖日期
export function addCrops(data) {
  return request({
    url: '/business/crops',
    method: 'post',
    data: data
  })
}

// 修改养殖日期
export function updateCrops(data) {
  return request({
    url: '/business/crops',
    method: 'put',
    data: data
  })
}

// 删除养殖日期
export function delCrops(id) {
  return request({
    url: '/business/crops/' + id,
    method: 'delete'
  })
}
